package cn.jiyun.service.impl;

import cn.jiyun.pojo.BackstageUser;
import cn.jiyun.service.BackstageUserService;
import cn.jiyun.Result.Result;
import cn.jiyun.mapper.BackstageUserMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 用户资料表（乘客与司机信息）  洪龙(BackstageUser)表服务实现类
 *
 * @author makejava
 * @since 2024-12-20 09:38:31
 */
@Service("backstageUserService")
public class BackstageUserServiceImpl extends ServiceImpl<BackstageUserMapper, BackstageUser> implements BackstageUserService {
    @Autowired
    private BackstageUserMapper backstageUserMapper;


    @Override
    public Result getDriversNum() {
        Integer count = backstageUserMapper.getDriversNum();
        return Result.ok(count);
    }

    @Override
    public Integer getTravelNumber() {
        return backstageUserMapper.getTravelNumber();
    }

    @Override
    public Integer getUnloadedNumber() {
        return backstageUserMapper.getUnloadedNumber();
    }

    @Override
    public Integer getCount() {
        return  backstageUserMapper.getCount();
    }
}


